Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. COTim, thanks, that helps a lot getting started with this. I have it setup this way basically: toplevel-file.c, toplevel-file.h, udp-program.c udp-program.h tcp-program.c tcp-program.h and finally net.c and net.h (which I put all the UDP / TCP simple socket functions in). I thought this method would make it easier since the UDP server will be busy keeping another device up. If you think it's easier to put it ALL in the top level file (which I normally never do), than I can do that. Select definitely seems easier to implement than a pipe, but having one file (or one process) makes things messy.
      singulars
    2. CODon't forget that a single compiled program can come from multiple source files, which can help keep different parts of the program separate. Just make sure that there's only one `main()` function, and check your development system documentation about how to compile and link several source files.
      singulars
    3. COOh sorry Tim, in that case, it is only "one program". I just have multiple source files. The only thing is, I forked the UDP server to run off the side currently so that I could also monitor for incoming TCP requests with the TCP program (so right now, when the user calls start on the main program, it runs and forks the UDP server, and runs the TCP server, only problem I have is obv. the communication between them). This is why I was confused when you said multiple processes. I will look into both solutions: fork/pipes and select but which would be easier to implement for something like this?
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload