Some tricks
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
7e8021a3de
commit
8f68e9f8a3
2 changed files with 2 additions and 1 deletions
|
|
@ -225,7 +225,7 @@ int main(void) {
|
|||
|
||||
//prepare_ccid();
|
||||
#else
|
||||
emul_init("127.0.0.1",35963);
|
||||
emul_init("localhost",35963);
|
||||
#endif
|
||||
|
||||
random_init();
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ int msleep(long msec)
|
|||
|
||||
int emul_init(char *host, uint16_t port) {
|
||||
struct sockaddr_in serv_addr;
|
||||
printf("\n Starting emulation envionrment\n");
|
||||
if ((sock = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
|
||||
printf("\n Socket creation error \n");
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue