mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-06-08 19:13:42 +02:00
@@ -225,7 +225,7 @@ int main(void) {
|
|||||||
|
|
||||||
//prepare_ccid();
|
//prepare_ccid();
|
||||||
#else
|
#else
|
||||||
emul_init("127.0.0.1",35963);
|
emul_init("localhost",35963);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
random_init();
|
random_init();
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ int msleep(long msec)
|
|||||||
|
|
||||||
int emul_init(char *host, uint16_t port) {
|
int emul_init(char *host, uint16_t port) {
|
||||||
struct sockaddr_in serv_addr;
|
struct sockaddr_in serv_addr;
|
||||||
|
printf("\n Starting emulation envionrment\n");
|
||||||
if ((sock = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
|
if ((sock = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
|
||||||
printf("\n Socket creation error \n");
|
printf("\n Socket creation error \n");
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user