-
Notifications
You must be signed in to change notification settings - Fork 508
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #192 from hooligan520/master
update changelog
- Loading branch information
Showing
11 changed files
with
60 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
module _APP_{ | ||
interface _SERVANT_{ | ||
|
||
int Add(int a,int b,out int c); // Some example function | ||
int Sub(int a,int b,out int c); // Some example function | ||
}; | ||
module _APP_ | ||
{ | ||
interface _SERVANT_ | ||
{ | ||
int Add(int a,int b,out int c); // Some example function | ||
int Sub(int a,int b,out int c); // Some example function | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
0
tars/tools/Demo/Server.conf → tars/tools/Demo/config.conf
100644 → 100755
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
"os" | ||
|
||
"github.com/TarsCloud/TarsGo/tars" | ||
|
||
"_APP_" | ||
) | ||
|
||
func main() { | ||
// Get server config | ||
cfg := tars.GetServerConfig() | ||
|
||
// New servant imp | ||
imp := new(_SERVANT_Imp) | ||
err := imp.Init() | ||
if err != nil { | ||
fmt.Printf("_SERVANT_Imp init fail, err:(%s)\n", err) | ||
os.Exit(-1) | ||
} | ||
// New servant | ||
app := new(_APP_._SERVANT_) | ||
// Register Servant | ||
app.AddServantWithContext(imp, cfg.App+"."+cfg.Server+"._SERVANT_Obj") | ||
|
||
// Run application | ||
tars.Run() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
make | ||
./_SERVER_ --config=_SERVER_.conf | ||
./_SERVER_ --config=config.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters