mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-04-24 09:52:59 +02:00
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user