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

transfer data both ways. #10

Closed
davidroze opened this issue Jan 31, 2018 · 2 comments
Closed

transfer data both ways. #10

davidroze opened this issue Jan 31, 2018 · 2 comments

Comments

@davidroze
Copy link

Hi,
i have tested the echo examples and its works perfectly!:)
can i use a generic sdp offer and answer on the client side? i know the public ip of the server so no signalling is required , how can i implement this?
and how can i receive data and not just send / and support multiple connections (unique) ?

@seemk
Copy link
Owner

seemk commented Jan 31, 2018

Hi,

I don't think you will be able to skip the signalling, as the SDP exchange is needed to get the handshake (STUN -> SCTP over DTLS) working. At least I don't think browsers will connect to the server without proper signalling. However, if you don't want to use HTTP for signalling and want to do something custom, you can check the interface at Wu.h, it's platform independent and at the moment there are 2 implementations using it (WuHostEpoll, WuHostNode).

I'm not sure if I understand your second question, so feel free to correct me: the server handles connections for you, you can support multiple connections by storing the WuClient pointers somewhere, passed to you inside the WuEvent struct defined at Wu.h

You can receive and send data both on the client and server. Do you mean receiving data on the client side or server side?

@seemk
Copy link
Owner

seemk commented Mar 8, 2018

Closing this since it has been over a month.

@seemk seemk closed this as completed Mar 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants