process-type
process-type is a built-in function in `C source code
'.
(process-type PROCESS)
Return the connection type of PROCESS.
The value is either the symbol `real', `network', or `serial'.
PROCESS may be a process, a buffer, the name of a process or buffer, or
nil, indicating the current buffer's process.