ifdef foo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OK, next question.

In src/modules/module-protocol-stub.c

I see the following comment

   449 #else /* USE_TCP_SOCKETS */
   450         if (u->socket_server_unix)
   451             if 
(pa_socket_server_get_address(u->socket_server_unix, t, sizeof(t)))
   452 pa_http_protocol_remove_server_string(u->http_protocol, t);

But I always thought that TCP sockets and Unix sockets where different. 
That unix sockets where the ones that exist as an inode in the 
filesystem, where-as TCP sockets are bound to a network port. Is the 
comment wrong or am I misunderstanding?

Thanks,
Tim

On 03/15/2017 10:56 PM, Tanu Kaskinen wrote:
> On Wed, 2017-03-15 at 22:35 +0100, Timothy Hobbs wrote:
>> I thought that was what it was. I was just confused by the use of "foo",
>> which is usually used when prototyping something... Is it convention
>> just for PA or is it a wider C convention?
> I haven't seen it outside PulseAudio.
>



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux