Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tcp:bind() crashes the app #10

Open
TheBITLINK opened this issue Jun 4, 2016 · 6 comments
Open

tcp:bind() crashes the app #10

TheBITLINK opened this issue Jun 4, 2016 · 6 comments

Comments

@TheBITLINK
Copy link

When i try to start a TCP Server, the app instantly hangs on both citra and my console:
image
This happens right after calling tcp:bind(5000) in my app.

@Ihamfp
Copy link
Member

Ihamfp commented Jun 5, 2016

I'm working on it, it crashes at bind() (in C) even with a simple code:

int servfd = socket(AF_INET, SOCK_STREAM, 0);
struct sockaddr_in addr;
addr.sin_family = AF_INET;
addr.sin_addr.s_addr = gethostid();
addr.sin_port = htons(5000);
bind(servfd, (struct sockaddr*)&addr, sizeof(addr));

It causes a segfault and I absolutely don't know why.

(Also, I added ctr.hid.cstick(), it will be in my next commit)

@TheBITLINK
Copy link
Author

Hmm, i guess i'll just do inverse connection until this is fixed. Would really like to help, but i don't know much about C. I'm more comfortable with managed languages.

(Also, thanks for the cstick thing, my prayers have been answered)

@TheBITLINK
Copy link
Author

tcp:getsockname() also seems to crash...

@Ihamfp
Copy link
Member

Ihamfp commented Jun 9, 2016

Doesn't crash with my test code, could you past yours ?

All these crashes are very strange ...

@TheBITLINK
Copy link
Author

Is there any way i can contact you directly?

I have, uh, some noob questions

@Ihamfp
Copy link
Member

Ihamfp commented Jun 26, 2016

Install Tox, add our bot 6CCD59D3272F6BC3332A5A89BE830732458D2A66CAC519364A220684A629C37CA9AF3068A5CC and send "invite" to come to the room. We should add it to the readme ... This week maybe.

EDIT: my personal ID: FFBDC8B34DC3CDE51F8F1CB0A628147DE740ACD1D44682EB5492A681F6541E32E8D8BB6052B3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants